<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改用户-thymeleaf</title>
</head>
<body>
    <form method="post" action="updateUserById.do">
        <input type="hidden" name="id" th:value="${user.id}">
        用&ensp;户&ensp;名：<input name="ename" type="text" th:value="${user.ename}"><br>
        工&emsp;资：<input name="salary" type="text" th:value="${user.salary}"><br>
        性&emsp;别：<td th:if="${user.sex}=='男'">
                    男<input type="radio" name="sex" th:value="男" checked="checked">
                    女<input type="radio" name="sex" th:value="女">
                    中性<input type="radio" name="sex" th:value="中性">
                    未知<input type="radio" name="sex" th:value="未知">
                   </td><br>
                   <td th:if="${user.sex}=='女'">
                    男<input type="radio" name="sex" th:value="男">
                    女<input type="radio" name="sex" th:value="女" checked="checked">
                    中性<input type="radio" name="sex" th:value="中性">
                    未知<input type="radio" name="sex" th:value="未知">
                   </td><br><td th:if="${user.sex}=='中性'">
                    男<input type="radio" name="sex" th:value="男">
                    女<input type="radio" name="sex" th:value="女">
                    中性<input type="radio" name="sex" th:value="中性" checked="checked">
                    未知<input type="radio" name="sex" th:value="未知">
                   </td><br><td th:if="${user.sex}=='未知'">
                    男<input type="radio" name="sex" th:value="男">
                    女<input type="radio" name="sex" th:value="女">
                    中性<input type="radio" name="sex" th:value="中性">
                    未知<input type="radio" name="sex" th:value="未知" checked="checked">
                   </td><br>
        入职日期：<input name="hiredate" type="text" th:value="${user.hiredate}"><br>
        <input class="button" type="submit" value="修改">
    </form>
</body>
</html>